package com.amigo.online.common.param.dto.video;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

public class AreaDto {
	
	@Digits(integer=2,fraction=0,message="地区等级超出范围")
	private Integer level; //地区等级
	@Digits(integer=10,fraction=0,message="上级地址超出范围")
	private Integer pid; //上级地址ID
	@NotBlank
	@Pattern(regexp="\\b(chinese|english|portuguese|spanish)\\b")
	private String lang;//语言
	@Length(min = 0,max = 20)
	private String phoneType; // 手机类型
	

	public Integer getLevel() {
		return level;
	}
	public void setLevel(Integer level) {
		this.level = level;
	}
	public Integer getPid() {
		return pid;
	}
	public void setPid(Integer pid) {
		this.pid = pid;
	}
	public String getLang() {
		return lang;
	}
	public void setLang(String lang) {
		this.lang = lang;
	}
	public String getPhoneType() {
		return phoneType;
	}
	public void setPhoneType(String phoneType) {
		this.phoneType = phoneType;
	}
}
